<div id="content">
    <div class="account_header">
        <h2>My Account</h2>
    </div>
    <div class="account_main">
        <div class="account_main_nav">
            <ul>
                <li><a <?if($category=='orders'||$category=='order')echo'class="account_main_nav_active"'?> href="<?=$controller.'orders/'?>">Orders</a></li>
<!--                <li><a --><?//if($category=='returns')echo'class="account_main_nav_active"'?><!-- href="--><?//=$controller.'returns/'?><!--">Returns</a></li>-->
<!--                <li><a <?if($category=='wait')echo'class="account_main_nav_active"'?> href="<?=$controller.'wait/'?>">Wait List</a></li>-->
<!--                <li><a --><?//if($category=='invitations')echo'class="account_main_nav_active"'?><!-- href="--><?//=$controller.'invitations/'?><!--">Sent Invitations</a></li>-->
                <li><a <?if($category=='settings')echo'class="account_main_nav_active"'?> href="<?=$controller.'settings/'?>">Settings, Email Preferences, and Password</a></li>
                <li><a <?if($category=='shipping'||$category=='change')echo'class="account_main_nav_active"'?> href="<?=$controller.'shipping/'?>">Shipping Addresses</a></li>
<!--                <li><a --><?//if($category=='payment')echo'class="account_main_nav_active"'?><!-- href="--><?//=$controller.'payment/'?><!--">Payment Methods</a></li>-->
<!--                <li><a --><?//if($category=='credits')echo'class="account_main_nav_active"'?><!-- href="--><?//=$controller.'credits/'?><!--">Account Credits</a></li>-->
<!--                <li><a <?if($category=='specials')echo'class="account_main_nav_active"'?> href="<?=$controller.'specials/'?>">Special Offers</a></li>-->
                <li><a href="<?='/signin/out/'?>">Sign out</a></li>
            </ul>
        </div>
        <div class="account_main_text">
            <div class="account_main_text_header">
                <span class="account_orders_header"><?=ucfirst($category)?></span>
    <?php if (isset($childTemplate)){
            echo$childTemplate;
        }else{ ?>
                <span class="account_orders_header_right">
                    Questions?
                    <a href="/contact/">Contact Us</a>
                </span>
                <div style="clear: both"></div>
            </div>
            <div class="account_main_text_content">
                <?=isset($text1)?$text1:''?>
                <?=isset($form)?$form:''?>
                <?=isset($text2)?$text2:''?>
            </div>
        <?php } ?>
        </div>
    </div>
    <div style="clear: both"></div>
</div>
